<h4>MANAJEMEN NERACA KEUANGAN MAHASISWA &raquo; <span class="current_page">NERACA TAGIHAN MAHASISWA</span></h4>

            <!-- Begin three column window -->
<div class="onecolumn" style="padding-bottom:20px">
    <div class="header">
    <span>NERACA TAGIHAN MAHASISWA</span>
	</div>
	<br class="clear"/>


<div class="content">

 <form style="display: inline; margin: 0;" method="post" action="<?php echo site_url('siku/kirim-tagihan.html') ?>">

 <table cellpadding="0" border="0" width="394px" style="margin-left: 15px">
    <tbody>
    <tr align="left">
      <td height="30px"><b>Pilih Semester</b></td>
      <td width="250px"><?php echo form_dropdown('semester', generate_options($optionsSemester,'ID','NAMA','ori'), set_value('semester')); ?></td>
    </tr>
    <tr align="left">
      <td><b>Pilih Tahun Ajaran</b></td>
      <td>
        <?php $this->load->view('select_options_tahun'); ?>
      </td>
    </tr>
    </tbody>
 </table>

 <?php echo br() ?>

 <table class="data" width="100%" cellpadding="0" cellspacing="0">
            <tr align="center">
                <th height="43">No.</th>
                  <th width="40">Angkatan</th>
                  <th width="200">Prodi</th>
                  <th width="140">Jalur Penerimaan</th>
                  <th width="80">Program</th>
                  <th width="120">Angsuran 1</th>
                  <th width="120">Angsuran 2</th>
                  <th width="120">Angsuran 3</th>
            </tr>

            <?php if($viewSpp): ?>

            <?php $seq_number = 1 ?>
            <?php foreach($viewSpp as $spp): ?>
            <tr class="uiTableInit" align="center">
                <td height="42"><?php echo $seq_number ?></td>
                <td><?php echo 2000 + $spp->ANGKATAN ?></td>
                <td><?php echo $spp->NAMA_PRODI ?></td>
                <td><?php echo $spp->DESKRIPSI ?></td>
                <td><?php echo $spp->PROGRAMID ?> - <?php echo $spp->NAMA_PROGRAMID ?></td>
                <td><?php $angsuran1 = $this->keuangan_model->selectSumViewSpp($spp->ANGKATAN,$spp->STATUS_PENERIMAAN,$spp->PROGRAMID,1) ?><?php echo number_format($angsuran1->TOTAL_NOMINAL,0,'','.'); ?></td>
                <td><?php $angsuran2 = $this->keuangan_model->selectSumViewSpp($spp->ANGKATAN,$spp->STATUS_PENERIMAAN,$spp->PROGRAMID,2) ?><?php echo number_format($angsuran2->TOTAL_NOMINAL,0,'','.'); ?></td>
                <td><?php $angsuran3 = $this->keuangan_model->selectSumViewSpp($spp->ANGKATAN,$spp->STATUS_PENERIMAAN,$spp->PROGRAMID,3) ?><?php echo number_format($angsuran3->TOTAL_NOMINAL,0,'','.'); ?></td>
              </tr>
            <?php $seq_number++ ?>
            <?php endforeach ?>

            <?php else: ?>

            <tr class="uiTableInit" align="left">
              <td height="26">&nbsp;</td>
              <td colspan="7">Data tidak tersedia</td>
            </tr>

            <?php endif ?>

            <?php $disabled = empty($viewSpp)? 'disabled="disabled"' : '' ?>
            <tr class="uiTableInit" bgcolor="#d0dafd" align="center">
              <td colspan="8">
                <button class="sexybutton sexysimple" type="submit" <?php echo $disabled ?> value="Kirim Tagihan">Kirim Tagihan</button>
                <input type="hidden" name="sk" value="<?php echo rand() ?>" />
              </td>
            </tr>

            <?php if($message): ?><tr class="uiTableInit" ><td colspan="8">&nbsp;</td></tr><?php endif ?>

            <?php if($error && $message): ?>
            <tr align="left">
              <td class="errorbox" colspan="8"><?php echo $message ?></td>
            </tr>
            <?php elseif(!$error && $message): ?>
            <tr align="left">
              <td class="successbox" colspan="8"><?php echo $message ?></td>
            </tr>
            <?php endif ?>

 </table>
 </form>

<br />

</div>

</div>